package csu.web.mypetstore.service;

import csu.web.mypetstore.domain.Item;
import csu.web.mypetstore.persistence.ItemDao;
import csu.web.mypetstore.persistence.impl.ItemDaoImpl;

public class ItemService {
    private ItemDao itemDao;
    public ItemService()
    {
        itemDao=new ItemDaoImpl();
    }

    public String getItemDetails(String itemID)
    {
        Item item = itemDao.getItem(itemID);
         return "Price:"+item.getListPrice().toString()+" UnitCost:"+item.getUnitCost().toString()+" ItemId:"+item.getItemId()+" " +item.getAttribute1();

    }
}
